package com.waimai1.waimai.entity;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.ToString;

import java.io.Serializable;

/**
 * (Admin)表实体类
 *
 * @author makejava
 * @since 2023-11-01 12:12:39
 */
@SuppressWarnings("serial")
@ToString
public class Admin extends Model<Admin> {
    
    private Integer id;
    
    private String name;
    
    private String password;
    
    private String role;
    //后台管理用户表
    private String status;
    public Integer getId() {
        return id;
    }
    public void setId(Integer id) {
        this.id = id;
    }
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getRole() {
        return role;
    }

    public void setRole(String role) {
        this.role = role;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    protected Serializable pkVal() {
        return this.id;
    }
    }

